package com.shanpin.shebao.admin.module.user;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shanpin.shebao.utility.Criteria;
import com.shanpin.shebao.utility.PageModel;

@Service
public class UserMarketDeviceService {

	@Autowired
	private UserMarketDeviceDao userMarketDeviceDao;



	public List<String> getUserFlagMarketList() {
		return userMarketDeviceDao.getUserFlagMarketList();
	}
	
	protected void userFlagList(PageModel pageModel, Criteria<?> c, boolean export) {
		userMarketDeviceDao.getUserFlagList(pageModel, c, export);
	}
	
	protected List<Object> exportUserFlag(PageModel pageModel, Criteria<?> c) {
		userFlagList(pageModel, c, true);
		return pageModel.getRecordList();
	}
	
	
	

	protected List<String> getMarketUser_MarketList() {
		return userMarketDeviceDao.getMarketUser_MarketList();
	}

	protected void getMarketUsers(PageModel pm, Criteria<?> c) {
		userMarketDeviceDao.getMarketUsers(pm, c);
	}

	protected List<Map<String, Object>> exportMarketUsers(Criteria<?> c) {
		return userMarketDeviceDao.exportMarketUsers(c);
	}
	
}
